package com.huangxt.test.modify.info;

public class ModifyInfoMethod {
    private ModifyInfoInterface modifyInfoInterface;

    public ModifyInfoMethod(String className) throws Exception {
        if("support".equalsIgnoreCase(className)){
            this.modifyInfoInterface = new ModifySupportInfo();
        }else {
            throw new Exception("暂不支持");
        }

    }
    public void modifyInfo(Object old,Object newly) throws Exception{
        modifyInfoInterface.insertModifyInfo(old,newly);
    }

}
